package self.encapsulate.field;

/**
 * Created by Administrator on 2018/1/25.
 */
public class Test {
    private int low, high;

    boolean includes(int arg) {
        return arg >= low && arg <= high;
    }

    //==========以下是重构===============

    boolean includesRF(int arg) {
        return arg >= getLow() && arg <= getHigh();
    }

    public int getLow() {
        return low;
    }

    public void setLow(int low) {
        this.low = low;
    }

    public int getHigh() {
        return high;
    }

    public void setHigh(int high) {
        this.high = high;
    }
}
